<?php
class Frontend_Table_Row_User extends Custom_Model_Table_Row_Abstract
{
    public function setPassword($value)
    {
        $this->getRow()->password = md5($value);
    }

    public function getGroup()
    {
        $groupId = $this->getRow()->group_id;
        $group = Wenda::getTable('Group')->findById($groupId);
        return $group->title;
    }
}
